/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	GlbAdpTanx-1.0.0		*/
/*	Author:		gong_libin			*/
/*	Date:		2016_06_01			*/
/*	File:		GlbAdpDef.h			*/
/********************************************************/

#ifndef	_GLBADPDEF_H
#define	_GLBADPDEF_H

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "GlbMsg.h"

#define	GLB_AD_REQ			0x01		// Request
#define	GLB_AD_RES			0x02		// Response
#define	GLB_AD_VIL			0x03		// Res'd request

#define	GLB_AD_MSG			0x08
#define	GLB_AD_MNI			0x10
#define	GLB_AD_MAX			0xffff
#define	GLB_AD_MNB			0x100000

#define	GLB_AD_KEY			'A'
#define	GLB_AD_PATH			(char*)"/tmp"

#define	GLB_AD_TOTAL			100000
#define	GLB_AD_MSGLOG			(char*)"/var/log/GlbAdpTanxMsgLog."

typedef struct tagGlbAdpMsg
{
	int m_iLength;
	UCHAR m_ucType;
	UCHAR m_uszMsg[GLB_KBYTES4];
}GLBADPMSG_S;

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* _GLBADPDEF_H */
